package tech.yixiyun.framework.kuafu.view;

/**
 * 重定向
 */
public class RedirectView extends View {
    private String path;

    public RedirectView() {
    }
    public RedirectView(String path) {
        this.path = path;
    }
    @Override
    public void render() {
        try {
            this.getResponse().sendRedirect(path);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
